home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1996 November
/
Chip 11-96.iso
/
treiber
/
drucker
/
lexmark
/
optrae
/
windows
/
optraewi.exe
/
LINPCL.ZIP
/
PCL.LIN
Wrap
INI File
|
1995-10-04
|
4KB
|
158 lines
[Variables]
;
; >>>
; >>> BEGINNING OF NLS -- Start translating here.
; >>>
; >>> Do not translate the variable name on the left, only translate the
; >>> quoted string.
; >>>
;
$APPNAME = "Lexmark PCL 5 Driver for Windows"
$FINALMSG = "Contratulations! The PCL 5 driver was successfully installed."
$Str_CompName_PCL5 = "PCL 5 Driver"
$Str_Prompt_TestingPCL5 = "Printing PCL test page. Please wait..."
$Str_Disk_Setup = "Windows Setup Diskette"
$Str_Disk_Driver = "Windows Setup Diskette"
; >>>
; >>> END OF NLS -- Stop translating here
; >>>
;
; System variables...
;
$INSTALLMETHODS = "E"
$INSTALLMACRO = "PCL5_Install"
$SIZECOMPONENT = "PCL5"
;
; Switches that toggle installation of the different components.
; Network administrators may override these in an extra config file
; to tailor for their own environment.
;
$Install_PCL5 = $YES
;
; Other globals...
;
$TrueDevice_PCL5 = "" ; True name for the installed PCL 5 printer
;
; String constants
;
$Driver_PCL5 = "lmpcl5s"
$Str_PCL5 = "PCL 5"
$Keyword_PCL5_R = "Optra R"
$Keyword_PCL5_L = "Optra L"
$Keyword_PCL5_LX = "Optra Lx"
$Keyword_PCL5_RX = "Optra Rx"
$Keyword_PCL5_RT = "Optra Rt"
$Keyword_PCL_Sun = "Optra E"
[Disks]
PCLDrvDisk = $Str_Disk_Driver, drvdisk.bmp, 255, 0, 0
[Libraries]
PCLUtility = linutil.dll
[Banners]
PCLBanner = pcl.bmp
[Components]
; Normal installation components
PCL5 = $Str_CompName_PCL5, PCLBanner, $SYSTEMDIR, PCLDrvDisk, 800,
(wn3126l5.zip, EXCLUDE, oemsetup.inf)
PCLOEMSetup = $Str_CompName_PCL5, , $TEMPDIR, PCLDrvDisk, 1, lxl5oems.zip
; Server components
; Setup files add about 32K
PCL5_Server = $Str_CompName_PCL5, , $SERVERAPPDIR, PCLDrvDisk, 350,
(wn3126l5.zip, lxl5oems.zip, =pcl.lin, =pcl.bmp)
[Macros]
; PrintPCLTestPage: Prints test page(s) for PCL driver.
; No return value.
PrintPCLTestPage()
(
ShowMessage($Str_Prompt_TestingPCL5)
CallLibrary(PCLUtility, PrintTestPage, , ($Driver_PCL5, $TrueDevice_PCL5, $Port))
; Erase the "please wait" message...
ShowMessage("")
)
; InstallPCL5: Install the PCL driver.
; No return value (we use the return value as a temporary
; string.)
;
InstallPCL5()
(
; Make sure that the VXD has been installed (part of driver)
CallMacro(InstallVXD, , )
; Copy the driver files
InstallComponent(PCL5, $TRUESYSTEMDIR)
; Find the valid device-driver-expected name, using OEMSETUP.INF.
; For now, we use $InstallPCL5 to hold the full name of the
; OEMSETUP file left in the temporary directory...
;
InstallComponent(PCLOEMSetup)
MakePathName($InstallPCL5, , $TEMPDIR, "oemsetup.inf")
IfEqual($Printer_Type, $Str_Optra_R,
SetVariable($TrueDevice_PCL5, $Keyword_PCL5_R))
IfEqual($Printer_Type, $Str_Optra_L,
SetVariable($TrueDevice_PCL5, $Keyword_PCL5_L))
IfEqual($Printer_Type, $Str_Optra_LX,
SetVariable($TrueDevice_PCL5, $Keyword_PCL5_LX))
IfEqual($Printer_Type, $Str_Optra_RX,
SetVariable($TrueDevice_PCL5, $Keyword_PCL5_RX))
IfEqual($Printer_Type, $Str_Optra_RT,
SetVariable($TrueDevice_PCL5, $Keyword_PCL5_RT))
IfEqual($Printer_Type, $Str_Sunflower,
SetVariable($TrueDevice_PCL5, $Keyword_PCL_Sun))
CallLibrary(PCLUtility, FindPrinterInOEMSETUP, $TrueDevice_PCL5,
($InstallPCL5, $TrueDevice_PCL5))
; Update win.ini
CallMacro(ConnectPrinter, , ($Driver_PCL5, $TrueDevice_PCL5, $Port))
)
; PCL5_Install: Entry point for when the script is run independently.
;
PCL5_Install($cmdline)
(
CallMacro(InstallPCL5, , )
)